package 运动员和教练;

public class Demo {
    public static void main(String[] args) {
//创建对象
        pingpangplayer ppp=new pingpangplayer();
        ppp.setName("小乒乓");
        ppp.setAge(20);
        System.out.println(ppp.getName()+","+ppp.getAge());
        ppp.eat();
        ppp.study();
        ppp.speakEnglish();
        pingpangplayer pp=new pingpangplayer("小乒乓",20);
        System.out.println(pp.getName()+","+pp.getAge());
        pp.eat();
        pp.study();
        pp.speakEnglish();
        pingpangcoach PPP=new pingpangcoach();
        PPP.setName("大乒乓");
        PPP.setAge(40);
        System.out.println(PPP.getName()+","+PPP.getAge());
        PPP.eat();
        PPP.teach();
        PPP.speakEnglish();
        pingpangcoach PP=new pingpangcoach("大乒乓",40);
        System.out.println(PP.getName()+","+PP.getAge());
        PP.eat();
        PP.teach();
        PP.speakEnglish();

        basketballplayer bbb=new basketballplayer();
        bbb.setName("小篮球");
        bbb.setAge(20);
        System.out.println(bbb.getName()+","+bbb.getAge());
        bbb.eat();
        bbb.study();
        basketballplayer bb=new basketballplayer("小篮球",20);
        System.out.println(bb.getName()+","+bb.getAge());
        bb.eat();
        bb.study();
        basketballcoach BBB=new basketballcoach();
        BBB.setName("大篮球");
        BBB.setAge(40);
        System.out.println(BBB.getName()+","+BBB.getAge());
        BBB.eat();
        BBB.teach();
        basketballcoach BB=new basketballcoach("大篮球",40);
        System.out.println(BB.getName()+","+BB.getAge());
        BB.eat();
        BB.teach();
    }
}
